package cn.iocoder.yudao.framework.common.pojo;

import lombok.Data;
import org.springframework.context.ApplicationEvent;


public class SocialUserEvent extends ApplicationEvent {
    public SocialUserEvent(Long userId ,String openid,String nickname,String avatar,String phone) {
        super(openid);
        this.openid=openid;
        this.nickname=nickname;
        this.avatar=avatar;
        this.phone=phone;
        this.userId=userId;
    }

    private String phone;
    private Long userId;

    /**
     * 社交 openid
     */
    private String openid;
    /**
     * 用户昵称
     */
    private String nickname;
    /**
     * 用户头像
     */
    private String avatar;

    public String getPhone() {
        return phone;
    }

    public Long getUserId() {
        return userId;
    }

    public String getOpenid() {
        return openid;
    }

    public String getNickname() {
        return nickname;
    }

    public String getAvatar() {
        return avatar;
    }
}
